package hv.fmw.core.assets {
	import flash.display.Bitmap;
	/**
	 * @author hvong
	 */
	public class AssetVo {
		private var _id : String;
		private var _src : String;
		private var _content : *;
		
		private var _loaded : Boolean = false;
		
		public function AssetVo(id:String, src:String) {
			_id = id;
			_src = src;
		}

		public function pushContent(content:*) : void {
			_content = content;
			_loaded = true;
		}
		
		public function get id() : String {
			return _id;
		}

		public function get src() : String {
			return _src;
		}

		public function get content() : * {
			return _content;
		}

		public function get copy() : Bitmap {
			var cp:Bitmap = new Bitmap();
				cp.bitmapData = Bitmap(_content).bitmapData.clone();
			return cp;
		}

		public function get loaded() : Boolean {
			return _loaded;
		}
	}
}
